<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Pod::Simple - framework for parsing Pod - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/Pod::Simple">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Pod::Simple.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/Pod::Simple">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/Pod::Simple">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/Pod::Simple">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/Pod::Simple">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/Pod::Simple">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/Pod::Simple">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/Pod::Simple">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/Pod::Simple">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/Pod::Simple">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/Pod::Simple">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/Pod::Simple">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/Pod::Simple">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/Pod::Simple">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/Pod::Simple">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/Pod::Simple">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/Pod::Simple">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/Pod::Simple">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/Pod::Simple">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/Pod::Simple">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/Pod::Simple">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/Pod::Simple">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/Pod::Simple">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/Pod::Simple">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/Pod::Simple">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/Pod::Simple">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/Pod::Simple">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/Pod::Simple">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/Pod::Simple">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/Pod::Simple">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/Pod::Simple">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/Pod::Simple">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/Pod::Simple">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/Pod::Simple">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/Pod::Simple">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/Pod::Simple">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/Pod::Simple">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/Pod::Simple">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/Pod::Simple">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/Pod::Simple">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/Pod::Simple">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/Pod::Simple">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/Pod::Simple">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/Pod::Simple">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/Pod::Simple">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/Pod::Simple">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/Pod::Simple">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/Pod::Simple">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/Pod::Simple">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/Pod::Simple">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/Pod::Simple">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/Pod::Simple">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/Pod::Simple">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/Pod::Simple">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/Pod::Simple">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/Pod::Simple">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/Pod::Simple">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/Pod::Simple">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/Pod::Simple">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/Pod::Simple">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/Pod::Simple">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/Pod::Simple">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/Pod::Simple">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/Pod::Simple">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/Pod::Simple">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/Pod::Simple">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/Pod::Simple">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/Pod::Simple">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/Pod::Simple">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/Pod::Simple">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/Pod::Simple">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/Pod::Simple">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/Pod::Simple">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/Pod::Simple">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/Pod::Simple">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/Pod::Simple">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/Pod::Simple">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/Pod::Simple">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/Pod::Simple">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/Pod::Simple">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/Pod::Simple">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Pod::Simple.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/Pod::Simple">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/Pod::Simple">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/Pod::Simple">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/Pod::Simple">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/Pod::Simple">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/Pod::Simple">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/Pod::Simple">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/Pod::Simple">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/Pod::Simple">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/Pod::Simple">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/Pod::Simple">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/Pod::Simple">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/Pod::Simple">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/Pod::Simple">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/Pod::Simple">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/Pod::Simple">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/Pod::Simple">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/Pod::Simple">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/Pod::Simple">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/Pod::Simple">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/Pod::Simple">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/Pod::Simple">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/Pod::Simple">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/Pod::Simple">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/Pod::Simple">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/Pod::Simple">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/Pod::Simple">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/Pod::Simple">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/Pod::Simple">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/Pod::Simple">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/Pod::Simple">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/Pod::Simple">5.35.1</a>
          <a class="dropdown-item active" href="./Pod::Simple.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Pod::Simple.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="./Pod::Simple.html">Pod::Simple</a>
          <div id="more">
            (<a href="./Pod::Simple.txt">source</a>,
            <a href="https://metacpan.org/pod/Pod::Simple">CPAN</a>)
          </div>
            <div id="moduleversion">version 3.42</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#MAIN-METHODS">MAIN METHODS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#SECONDARY-METHODS">SECONDARY METHODS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#TERTIARY-METHODS">TERTIARY METHODS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#ENCODING">ENCODING</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#SUPPORT">SUPPORT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#COPYRIGHT-AND-DISCLAIMERS">COPYRIGHT AND DISCLAIMERS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Pod::Simple.html#AUTHOR">AUTHOR</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="./Pod::Simple.html#NAME">#</a>NAME</h1>

<p>Pod::Simple - framework for parsing Pod</p>

<h1 id="SYNOPSIS"><a class="permalink" href="./Pod::Simple.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<pre><code class="plaintext">TODO</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="./Pod::Simple.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>Pod::Simple is a Perl library for parsing text in the Pod (&quot;plain old documentation&quot;) markup language that is typically used for writing documentation for Perl and for Perl modules. The Pod format is explained in <a href="perlpod.html">perlpod</a>; the most common formatter is called <code>perldoc</code>.</p>

<p>Be sure to read <a href="./Pod::Simple.html#ENCODING">&quot;ENCODING&quot;</a> if your Pod contains non-ASCII characters.</p>

<p>Pod formatters can use Pod::Simple to parse Pod documents and render them into plain text, HTML, or any number of other formats. Typically, such formatters will be subclasses of Pod::Simple, and so they will inherit its methods, like <code>parse_file</code>. But note that Pod::Simple doesn&#39;t understand and properly parse Perl itself, so if you have a file which contains a Perl program that has a multi-line quoted string which has lines that look like pod, Pod::Simple will treat them as pod. This can be avoided if the file makes these into indented here documents instead.</p>

<p>If you&#39;re reading this document just because you have a Pod-processing subclass that you want to use, this document (plus the documentation for the subclass) is probably all you need to read.</p>

<p>If you&#39;re reading this document because you want to write a formatter subclass, continue reading it and then read <a href="./Pod::Simple::Subclassing.html">Pod::Simple::Subclassing</a>, and then possibly even read <a href="perlpodspec.html">perlpodspec</a> (some of which is for parser-writers, but much of which is notes to formatter-writers).</p>

<h1 id="MAIN-METHODS"><a class="permalink" href="./Pod::Simple.html#MAIN-METHODS">#</a><a id="MAIN"></a>MAIN METHODS</h1>

<dl>

<dt id="$parser-=-SomeClass-&gt;new();"><a class="permalink" href="./Pod::Simple.html#$parser-=-SomeClass-%3Enew();">#</a><a id="parser-SomeClass-new"></a><code>$parser = <i>SomeClass</i>-&gt;new();</code></dt>
<dd>

<p>This returns a new parser object, where <i><code>SomeClass</code></i> is a subclass of Pod::Simple.</p>

</dd>
<dt id="$parser-&gt;output_fh(-*OUT-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eoutput_fh(-*OUT-);">#</a><a id="output_fh"></a><a id="parser-output_fh-OUT"></a><code>$parser-&gt;output_fh( *OUT );</code></dt>
<dd>

<p>This sets the filehandle that <code>$parser</code>&#39;s output will be written to. You can pass <code>*STDOUT</code> or <code>*STDERR</code>, otherwise you should probably do something like this:</p>

<pre><code>my $outfile = &quot;output.txt&quot;;
open TXTOUT, &quot;&gt;$outfile&quot; or die &quot;Can&#39;t write to $outfile: $!&quot;;
$parser-&gt;output_fh(*TXTOUT);</code></pre>

<p>...before you call one of the <code>$parser-&gt;parse_<i>whatever</i></code> methods.</p>

</dd>
<dt id="$parser-&gt;output_string(-\$somestring-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eoutput_string(-%5C$somestring-);">#</a><a id="output_string"></a><a id="parser-output_string-somestring"></a><code>$parser-&gt;output_string( \$somestring );</code></dt>
<dd>

<p>This sets the string that <code>$parser</code>&#39;s output will be sent to, instead of any filehandle.</p>

</dd>
<dt id="$parser-&gt;parse_file(-$some_filename-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_file(-$some_filename-);">#</a><a id="parse_file"></a><a id="parser-parse_file-some_filename"></a><code>$parser-&gt;parse_file( <i>$some_filename</i> );</code></dt>
<dd>

</dd>
<dt id="$parser-&gt;parse_file(-*INPUT_FH-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_file(-*INPUT_FH-);">#</a><a id="parse_file1"></a><a id="parser-parse_file-INPUT_FH"></a><code>$parser-&gt;parse_file( *INPUT_FH );</code></dt>
<dd>

<p>This reads the Pod content of the file (or filehandle) that you specify, and processes it with that <code>$parser</code> object, according to however <code>$parser</code>&#39;s class works, and according to whatever parser options you have set up for this <code>$parser</code> object.</p>

</dd>
<dt id="$parser-&gt;parse_string_document(-$all_content-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_string_document(-$all_content-);">#</a><a id="parse_string_document"></a><a id="parser-parse_string_document-all_content"></a><code>$parser-&gt;parse_string_document( <i>$all_content</i> );</code></dt>
<dd>

<p>This works just like <code>parse_file</code> except that it reads the Pod content not from a file, but from a string that you have already in memory.</p>

</dd>
<dt id="$parser-&gt;parse_lines(-...@lines...,-undef-);"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_lines(-...@lines...,-undef-);">#</a><a id="parse_lines"></a><a id="parser-parse_lines-...-lines...-undef"></a><code>$parser-&gt;parse_lines( <i>...@lines...</i>, undef );</code></dt>
<dd>

<p>This processes the lines in <code>@lines</code> (where each list item must be a defined value, and must contain exactly one line of content -- so no items like <code>&quot;foo\nbar&quot;</code> are allowed). The final <code>undef</code> is used to indicate the end of document being parsed.</p>

<p>The other <code>parser_<i>whatever</i></code> methods are meant to be called only once per <code>$parser</code> object; but <code>parse_lines</code> can be called as many times per <code>$parser</code> object as you want, as long as the last call (and only the last call) ends with an <code>undef</code> value.</p>

</dd>
<dt id="$parser-&gt;content_seen"><a class="permalink" href="./Pod::Simple.html#$parser-%3Econtent_seen">#</a><a id="content_seen"></a><a id="parser-content_seen"></a><code>$parser-&gt;content_seen</code></dt>
<dd>

<p>This returns true only if there has been any real content seen for this document. Returns false in cases where the document contains content, but does not make use of any Pod markup.</p>

</dd>
<dt id="SomeClass-&gt;filter(-$filename-);"><a class="permalink" href="./Pod::Simple.html#SomeClass-%3Efilter(-$filename-);">#</a><a id="SomeClass"></a><a id="SomeClass-filter-filename"></a><code><i>SomeClass</i>-&gt;filter( <i>$filename</i> );</code></dt>
<dd>

</dd>
<dt id="SomeClass-&gt;filter(-*INPUT_FH-);"><a class="permalink" href="./Pod::Simple.html#SomeClass-%3Efilter(-*INPUT_FH-);">#</a><a id="SomeClass1"></a><a id="SomeClass-filter-INPUT_FH"></a><code><i>SomeClass</i>-&gt;filter( <i>*INPUT_FH</i> );</code></dt>
<dd>

</dd>
<dt id="SomeClass-&gt;filter(-\$document_content-);"><a class="permalink" href="./Pod::Simple.html#SomeClass-%3Efilter(-%5C$document_content-);">#</a><a id="SomeClass2"></a><a id="SomeClass-filter-document_content"></a><code><i>SomeClass</i>-&gt;filter( <i>\$document_content</i> );</code></dt>
<dd>

<p>This is a shortcut method for creating a new parser object, setting the output handle to STDOUT, and then processing the specified file (or filehandle, or in-memory document). This is handy for one-liners like this:</p>

<pre><code>perl -MPod::Simple::Text -e &quot;Pod::Simple::Text-&gt;filter(&#39;thingy.pod&#39;)&quot;</code></pre>

</dd>
</dl>

<h1 id="SECONDARY-METHODS"><a class="permalink" href="./Pod::Simple.html#SECONDARY-METHODS">#</a><a id="SECONDARY"></a>SECONDARY METHODS</h1>

<p>Some of these methods might be of interest to general users, as well as of interest to formatter-writers.</p>

<p>Note that the general pattern here is that the accessor-methods read the attribute&#39;s value with <code>$value = $parser-&gt;<i>attribute</i></code> and set the attribute&#39;s value with <code>$parser-&gt;<i>attribute</i>(<i>newvalue</i>)</code>. For each accessor, I typically only mention one syntax or another, based on which I think you are actually most likely to use.</p>

<dl>

<dt id="$parser-&gt;parse_characters(-SOMEVALUE-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_characters(-SOMEVALUE-)">#</a><a id="parse_characters"></a><a id="parser-parse_characters-SOMEVALUE"></a><code>$parser-&gt;parse_characters( <i>SOMEVALUE</i> )</code></dt>
<dd>

<p>The Pod parser normally expects to read octets and to convert those octets to characters based on the <code>=encoding</code> declaration in the Pod source. Set this option to a true value to indicate that the Pod source is already a Perl character stream. This tells the parser to ignore any <code>=encoding</code> command and to skip all the code paths involving decoding octets.</p>

</dd>
<dt id="$parser-&gt;no_whining(-SOMEVALUE-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eno_whining(-SOMEVALUE-)">#</a><a id="no_whining"></a><a id="parser-no_whining-SOMEVALUE"></a><code>$parser-&gt;no_whining( <i>SOMEVALUE</i> )</code></dt>
<dd>

<p>If you set this attribute to a true value, you will suppress the parser&#39;s complaints about irregularities in the Pod coding. By default, this attribute&#39;s value is false, meaning that irregularities will be reported.</p>

<p>Note that turning this attribute to true won&#39;t suppress one or two kinds of complaints about rarely occurring unrecoverable errors.</p>

</dd>
<dt id="$parser-&gt;no_errata_section(-SOMEVALUE-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eno_errata_section(-SOMEVALUE-)">#</a><a id="no_errata_section"></a><a id="parser-no_errata_section-SOMEVALUE"></a><code>$parser-&gt;no_errata_section( <i>SOMEVALUE</i> )</code></dt>
<dd>

<p>If you set this attribute to a true value, you will stop the parser from generating a &quot;POD ERRORS&quot; section at the end of the document. By default, this attribute&#39;s value is false, meaning that an errata section will be generated, as necessary.</p>

</dd>
<dt id="$parser-&gt;complain_stderr(-SOMEVALUE-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Ecomplain_stderr(-SOMEVALUE-)">#</a><a id="complain_stderr"></a><a id="parser-complain_stderr-SOMEVALUE"></a><code>$parser-&gt;complain_stderr( <i>SOMEVALUE</i> )</code></dt>
<dd>

<p>If you set this attribute to a true value, it will send reports of parsing errors to STDERR. By default, this attribute&#39;s value is false, meaning that no output is sent to STDERR.</p>

<p>Setting <code>complain_stderr</code> also sets <code>no_errata_section</code>.</p>

</dd>
<dt id="$parser-&gt;source_filename"><a class="permalink" href="./Pod::Simple.html#$parser-%3Esource_filename">#</a><a id="source_filename"></a><a id="parser-source_filename"></a><code>$parser-&gt;source_filename</code></dt>
<dd>

<p>This returns the filename that this parser object was set to read from.</p>

</dd>
<dt id="$parser-&gt;doc_has_started"><a class="permalink" href="./Pod::Simple.html#$parser-%3Edoc_has_started">#</a><a id="doc_has_started"></a><a id="parser-doc_has_started"></a><code>$parser-&gt;doc_has_started</code></dt>
<dd>

<p>This returns true if <code>$parser</code> has read from a source, and has seen Pod content in it.</p>

</dd>
<dt id="$parser-&gt;source_dead"><a class="permalink" href="./Pod::Simple.html#$parser-%3Esource_dead">#</a><a id="source_dead"></a><a id="parser-source_dead"></a><code>$parser-&gt;source_dead</code></dt>
<dd>

<p>This returns true if <code>$parser</code> has read from a source, and come to the end of that source.</p>

</dd>
<dt id="$parser-&gt;strip_verbatim_indent(-SOMEVALUE-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Estrip_verbatim_indent(-SOMEVALUE-)">#</a><a id="strip_verbatim_indent"></a><a id="parser-strip_verbatim_indent-SOMEVALUE"></a><code>$parser-&gt;strip_verbatim_indent( <i>SOMEVALUE</i> )</code></dt>
<dd>

<p>The perlpod spec for a Verbatim paragraph is &quot;It should be reproduced exactly...&quot;, which means that the whitespace you&#39;ve used to indent your verbatim blocks will be preserved in the output. This can be annoying for outputs such as HTML, where that whitespace will remain in front of every line. It&#39;s an unfortunate case where syntax is turned into semantics.</p>

<p>If the POD you&#39;re parsing adheres to a consistent indentation policy, you can have such indentation stripped from the beginning of every line of your verbatim blocks. This method tells Pod::Simple what to strip. For two-space indents, you&#39;d use:</p>

<pre><code>$parser-&gt;strip_verbatim_indent(&#39;  &#39;);</code></pre>

<p>For tab indents, you&#39;d use a tab character:</p>

<pre><code>$parser-&gt;strip_verbatim_indent(&quot;\t&quot;);</code></pre>

<p>If the POD is inconsistent about the indentation of verbatim blocks, but you have figured out a heuristic to determine how much a particular verbatim block is indented, you can pass a code reference instead. The code reference will be executed with one argument, an array reference of all the lines in the verbatim block, and should return the value to be stripped from each line. For example, if you decide that you&#39;re fine to use the first line of the verbatim block to set the standard for indentation of the rest of the block, you can look at the first line and return the appropriate value, like so:</p>

<pre><code>$new-&gt;strip_verbatim_indent(sub {
    my $lines = shift;
    (my $indent = $lines-&gt;[0]) =~ s/\S.*//;
    return $indent;
});</code></pre>

<p>If you&#39;d rather treat each line individually, you can do that, too, by just transforming them in-place in the code reference and returning <code>undef</code>. Say that you don&#39;t want <i>any</i> lines indented. You can do something like this:</p>

<pre><code>$new-&gt;strip_verbatim_indent(sub {
    my $lines = shift;
    sub { s/^\s+// for @{ $lines },
    return undef;
});</code></pre>

</dd>
<dt id="$parser-&gt;expand_verbatim_tabs(-n-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eexpand_verbatim_tabs(-n-)">#</a><a id="expand_verbatim_tabs"></a><a id="parser-expand_verbatim_tabs-n"></a><code>$parser-&gt;expand_verbatim_tabs( <i>n</i> )</code></dt>
<dd>

<p>Default: 8</p>

<p>If after any stripping of indentation in verbatim blocks, there remain tabs, this method call indicates what to do with them. <code>0</code> means leave them as tabs, any other number indicates that each tab is to be translated so as to have tab stops every <code>n</code> columns.</p>

<p>This is independent of other methods (except that it operates after any verbatim input stripping is done).</p>

<p>Like the other methods, the input parameter is not checked for validity. <code>undef</code> or containing non-digits has the same effect as 8.</p>

</dd>
</dl>

<h1 id="TERTIARY-METHODS"><a class="permalink" href="./Pod::Simple.html#TERTIARY-METHODS">#</a><a id="TERTIARY"></a>TERTIARY METHODS</h1>

<dl>

<dt id="$parser-&gt;abandon_output_fh()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eabandon_output_fh()">#</a><a id="abandon_output_fh"></a><a id="parser-abandon_output_fh"></a><code>$parser-&gt;abandon_output_fh()</code></dt>
<dd>

<p>Cancel output to the file handle. Any POD read by the <code>$parser</code> is not effected.</p>

</dd>
<dt id="$parser-&gt;abandon_output_string()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eabandon_output_string()">#</a><a id="abandon_output_string"></a><a id="parser-abandon_output_string"></a><code>$parser-&gt;abandon_output_string()</code></dt>
<dd>

<p>Cancel output to the output string. Any POD read by the <code>$parser</code> is not effected.</p>

</dd>
<dt id="$parser-&gt;accept_code(-@codes-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_code(-@codes-)">#</a><a id="accept_code"></a><a id="parser-accept_code-codes"></a><code>$parser-&gt;accept_code( @codes )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/accept_codes">accept_codes</a>.</p>

</dd>
<dt id="$parser-&gt;accept_codes(-@codes-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_codes(-@codes-)">#</a><a id="accept_codes"></a><a id="parser-accept_codes-codes"></a><code>$parser-&gt;accept_codes( @codes )</code></dt>
<dd>

<p>Allows <code>$parser</code> to accept a list of <a href="perlpod.html#Formatting-Codes">&quot;Formatting Codes&quot; in perlpod</a>. This can be used to implement user-defined codes.</p>

</dd>
<dt id="$parser-&gt;accept_directive_as_data(-@directives-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_directive_as_data(-@directives-)">#</a><a id="accept_directive_as_data"></a><a id="parser-accept_directive_as_data-directives"></a><code>$parser-&gt;accept_directive_as_data( @directives )</code></dt>
<dd>

<p>Allows <code>$parser</code> to accept a list of directives for data paragraphs. A directive is the label of a <a href="perlpod.html#Command-Paragraph">&quot;Command Paragraph&quot; in perlpod</a>. A data paragraph is one delimited by <code>=begin/=for/=end</code> directives. This can be used to implement user-defined directives.</p>

</dd>
<dt id="$parser-&gt;accept_directive_as_processed(-@directives-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_directive_as_processed(-@directives-)">#</a><a id="accept_directive_as_processed"></a><a id="parser-accept_directive_as_processed-directives"></a><code>$parser-&gt;accept_directive_as_processed( @directives )</code></dt>
<dd>

<p>Allows <code>$parser</code> to accept a list of directives for processed paragraphs. A directive is the label of a <a href="perlpod.html#Command-Paragraph">&quot;Command Paragraph&quot; in perlpod</a>. A processed paragraph is also known as <a href="perlpod.html#Ordinary-Paragraph">&quot;Ordinary Paragraph&quot; in perlpod</a>. This can be used to implement user-defined directives.</p>

</dd>
<dt id="$parser-&gt;accept_directive_as_verbatim(-@directives-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_directive_as_verbatim(-@directives-)">#</a><a id="accept_directive_as_verbatim"></a><a id="parser-accept_directive_as_verbatim-directives"></a><code>$parser-&gt;accept_directive_as_verbatim( @directives )</code></dt>
<dd>

<p>Allows <code>$parser</code> to accept a list of directives for <a href="perlpod.html#Verbatim-Paragraph">&quot;Verbatim Paragraph&quot; in perlpod</a>. A directive is the label of a <a href="perlpod.html#Command-Paragraph">&quot;Command Paragraph&quot; in perlpod</a>. This can be used to implement user-defined directives.</p>

</dd>
<dt id="$parser-&gt;accept_target(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_target(-@targets-)">#</a><a id="accept_target"></a><a id="parser-accept_target-targets"></a><code>$parser-&gt;accept_target( @targets )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/accept_targets">accept_targets</a>.</p>

</dd>
<dt id="$parser-&gt;accept_target_as_text(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_target_as_text(-@targets-)">#</a><a id="accept_target_as_text"></a><a id="parser-accept_target_as_text-targets"></a><code>$parser-&gt;accept_target_as_text( @targets )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/accept_targets_as_text">accept_targets_as_text</a>.</p>

</dd>
<dt id="$parser-&gt;accept_targets(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_targets(-@targets-)">#</a><a id="accept_targets"></a><a id="parser-accept_targets-targets"></a><code>$parser-&gt;accept_targets( @targets )</code></dt>
<dd>

<p>Accepts targets for <code>=begin/=for/=end</code> sections of the POD.</p>

</dd>
<dt id="$parser-&gt;accept_targets_as_text(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eaccept_targets_as_text(-@targets-)">#</a><a id="accept_targets_as_text"></a><a id="parser-accept_targets_as_text-targets"></a><code>$parser-&gt;accept_targets_as_text( @targets )</code></dt>
<dd>

<p>Accepts targets for <code>=begin/=for/=end</code> sections that should be parsed as POD. For details, see <a href="perlpodspec.html#About-Data-Paragraphs">&quot;About Data Paragraphs&quot; in perlpodspec</a>.</p>

</dd>
<dt id="$parser-&gt;any_errata_seen()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eany_errata_seen()">#</a><a id="any_errata_seen"></a><a id="parser-any_errata_seen"></a><code>$parser-&gt;any_errata_seen()</code></dt>
<dd>

<p>Used to check if any errata was seen.</p>

<p><i>Example:</i></p>

<pre><code>die &quot;too many errors\n&quot; if $parser-&gt;any_errata_seen();</code></pre>

</dd>
<dt id="$parser-&gt;errata_seen()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eerrata_seen()">#</a><a id="errata_seen"></a><a id="parser-errata_seen"></a><code>$parser-&gt;errata_seen()</code></dt>
<dd>

<p>Returns a hash reference of all errata seen, both whines and screams. The hash reference&#39;s keys are the line number and the value is an array reference of the errors for that line.</p>

<p><i>Example:</i></p>

<pre><code>if ( $parser-&gt;any_errata_seen() ) {
   $logger-&gt;log( $parser-&gt;errata_seen() );
}</code></pre>

</dd>
<dt id="$parser-&gt;detected_encoding()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Edetected_encoding()">#</a><a id="detected_encoding"></a><a id="parser-detected_encoding"></a><code>$parser-&gt;detected_encoding()</code></dt>
<dd>

<p>Return the encoding corresponding to <code>=encoding</code>, but only if the encoding was recognized and handled.</p>

</dd>
<dt id="$parser-&gt;encoding()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eencoding()">#</a><a id="encoding"></a><a id="parser-encoding"></a><code>$parser-&gt;encoding()</code></dt>
<dd>

<p>Return encoding of the document, even if the encoding is not correctly handled.</p>

</dd>
<dt id="$parser-&gt;parse_from_file(-$source,-$to-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eparse_from_file(-$source,-$to-)">#</a><a id="parse_from_file"></a><a id="parser-parse_from_file-source-to"></a><code>$parser-&gt;parse_from_file( $source, $to )</code></dt>
<dd>

<p>Parses from <code>$source</code> file to <code>$to</code> file. Similar to <a href="./Pod::Parser.html#parse_from_file">&quot;parse_from_file&quot; in Pod::Parser</a>.</p>

</dd>
<dt id="$parser-&gt;scream(-@error_messages-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Escream(-@error_messages-)">#</a><a id="scream"></a><a id="parser-scream-error_messages"></a><code>$parser-&gt;scream( @error_messages )</code></dt>
<dd>

<p>Log an error that can&#39;t be ignored.</p>

</dd>
<dt id="$parser-&gt;unaccept_code(-@codes-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_code(-@codes-)">#</a><a id="unaccept_code"></a><a id="parser-unaccept_code-codes"></a><code>$parser-&gt;unaccept_code( @codes )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/unaccept_codes">unaccept_codes</a>.</p>

</dd>
<dt id="$parser-&gt;unaccept_codes(-@codes-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_codes(-@codes-)">#</a><a id="unaccept_codes"></a><a id="parser-unaccept_codes-codes"></a><code>$parser-&gt;unaccept_codes( @codes )</code></dt>
<dd>

<p>Removes <code>@codes</code> as valid codes for the parse.</p>

</dd>
<dt id="$parser-&gt;unaccept_directive(-@directives-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_directive(-@directives-)">#</a><a id="unaccept_directive"></a><a id="parser-unaccept_directive-directives"></a><code>$parser-&gt;unaccept_directive( @directives )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/unaccept_directives">unaccept_directives</a>.</p>

</dd>
<dt id="$parser-&gt;unaccept_directives(-@directives-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_directives(-@directives-)">#</a><a id="unaccept_directives"></a><a id="parser-unaccept_directives-directives"></a><code>$parser-&gt;unaccept_directives( @directives )</code></dt>
<dd>

<p>Removes <code>@directives</code> as valid directives for the parse.</p>

</dd>
<dt id="$parser-&gt;unaccept_target(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_target(-@targets-)">#</a><a id="unaccept_target"></a><a id="parser-unaccept_target-targets"></a><code>$parser-&gt;unaccept_target( @targets )</code></dt>
<dd>

<p>Alias for <a href="https://perldoc.perl.org/5.35.0/unaccept_targets">unaccept_targets</a>.</p>

</dd>
<dt id="$parser-&gt;unaccept_targets(-@targets-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eunaccept_targets(-@targets-)">#</a><a id="unaccept_targets"></a><a id="parser-unaccept_targets-targets"></a><code>$parser-&gt;unaccept_targets( @targets )</code></dt>
<dd>

<p>Removes <code>@targets</code> as valid targets for the parse.</p>

</dd>
<dt id="$parser-&gt;version_report()"><a class="permalink" href="./Pod::Simple.html#$parser-%3Eversion_report()">#</a><a id="version_report"></a><a id="parser-version_report"></a><code>$parser-&gt;version_report()</code></dt>
<dd>

<p>Returns a string describing the version.</p>

</dd>
<dt id="$parser-&gt;whine(-@error_messages-)"><a class="permalink" href="./Pod::Simple.html#$parser-%3Ewhine(-@error_messages-)">#</a><a id="whine"></a><a id="parser-whine-error_messages"></a><code>$parser-&gt;whine( @error_messages )</code></dt>
<dd>

<p>Log an error unless <code>$parser-&gt;no_whining( TRUE );</code>.</p>

</dd>
</dl>

<h1 id="ENCODING"><a class="permalink" href="./Pod::Simple.html#ENCODING">#</a>ENCODING</h1>

<p>The Pod::Simple parser expects to read <b>octets</b>. The parser will decode the octets into Perl&#39;s internal character string representation using the value of the <code>=encoding</code> declaration in the POD source.</p>

<p>If the POD source does not include an <code>=encoding</code> declaration, the parser will attempt to guess the encoding (selecting one of UTF-8 or CP 1252) by examining the first non-ASCII bytes and applying the heuristic described in <a href="perlpodspec.html">perlpodspec</a>. (If the POD source contains only ASCII bytes, the encoding is assumed to be ASCII.)</p>

<p>If you set the <code>parse_characters</code> option to a true value the parser will expect characters rather than octets; will ignore any <code>=encoding</code>; and will make no attempt to decode the input.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="./Pod::Simple.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p><a href="./Pod::Simple::Subclassing.html">Pod::Simple::Subclassing</a></p>

<p><a href="perlpod.html">perlpod</a></p>

<p><a href="perlpodspec.html">perlpodspec</a></p>

<p><a href="./Pod::Escapes.html">Pod::Escapes</a></p>

<p><a href="perldoc.html">perldoc</a></p>

<h1 id="SUPPORT"><a class="permalink" href="./Pod::Simple.html#SUPPORT">#</a>SUPPORT</h1>

<p>Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to pod-people-subscribe@perl.org to subscribe.</p>

<p>This module is managed in an open GitHub repository, <a href="https://github.com/perl-pod/pod-simple/">https://github.com/perl-pod/pod-simple/</a>. Feel free to fork and contribute, or to clone <a href="git://github.com/perl-pod/pod-simple.git">git://github.com/perl-pod/pod-simple.git</a> and send patches!</p>

<p>Please use <a href="https://github.com/perl-pod/pod-simple/issues/new">https://github.com/perl-pod/pod-simple/issues/new</a> to file a bug report.</p>

<h1 id="COPYRIGHT-AND-DISCLAIMERS"><a class="permalink" href="./Pod::Simple.html#COPYRIGHT-AND-DISCLAIMERS">#</a><a id="COPYRIGHT"></a>COPYRIGHT AND DISCLAIMERS</h1>

<p>Copyright (c) 2002 Sean M. Burke.</p>

<p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.</p>

<h1 id="AUTHOR"><a class="permalink" href="./Pod::Simple.html#AUTHOR">#</a>AUTHOR</h1>

<p>Pod::Simple was created by Sean M. Burke &lt;sburke@cpan.org&gt;. But don&#39;t bother him, he&#39;s retired.</p>

<p>Pod::Simple is maintained by:</p>

<ul>

<li><p>Allison Randal <code>allison@perl.org</code></p>

</li>
<li><p>Hans Dieter Pearcey <code>hdp@cpan.org</code></p>

</li>
<li><p>David E. Wheeler <code>dwheeler@cpan.org</code></p>

</li>
<li><p>Karl Williamson <code>khw@cpan.org</code></p>

</li>
</ul>

<p>Documentation has been contributed by:</p>

<ul>

<li><p>Gabor Szabo <code>szabgab@gmail.com</code></p>

</li>
<li><p>Shawn H Corey <code>SHCOREY at cpan.org</code></p>

</li>
</ul>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
